Skip to main content

How to Swap

To transfer an asset across blockchains call swap() method with the following payload:

{
string calldata _dstChainId,
uint256 _srcPoolId,
uint256 _dstPoolId,
address payable _refundAddress,
uint256 _amountLD,
uint256 _minAmountLD,
string calldata _to,
bytes calldata _payload
}